package com.moyuxi.sound_of_the_forest.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable


/**
 * 本地音乐实体
 */
@Entity(tableName = "MusicList")
data class LocalMusicBean @JvmOverloads constructor(
    /**
     * ID
     */
    @ColumnInfo(name = "id") @PrimaryKey val id: Long = 0L,
    /**
     * 歌曲名称
     */
    @ColumnInfo(name = "name") val name: String = "",
    /**
     * 歌手
     */
    @ColumnInfo(name = "singer") val singer: String = "",
    /**
     * 专辑
     */
    @ColumnInfo(name = "album") val album: String = "",
    /**
     * 文件路径
     */
    @ColumnInfo(name = "path") val path: String = "",
    /**
     * 时长
     */
    @ColumnInfo(name = "duration") val duration: Long = 0,
    /**
     * 歌曲大小
     */
    @ColumnInfo(name = "sizes") val sizes: Long = 0L,
    /**
     * 专辑图片
     */
//    @ColumnInfo(name = "bitmap") val bitmap: ImageBitmap? = null
    @ColumnInfo(name = "bitmap") val bitmap: String? = null

):Serializable
